/**
 * @FileName: CleckReward.java
 * @Author
 * @Description:
 * @Date 2016年1月11日 下午2:59:11
 * @CopyRight ZTE Corporation
 */
package cn.hpclub.server.model;

import java.util.List;

import com.jfinal.ext.plugin.tablebind.TableBind;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.Record;

@TableBind(tableName = "cmcc_clerkreward_config")
public class ClerkReward extends Model<ClerkReward>{
    private static final long       serialVersionUID = -4396344673383928527L;
    public static final ClerkReward dao              = new ClerkReward();

    public List<Record> getClerkReward(int orgID){
        return Db.find("select * from cmcc_clerkreward_config where orgid=? and enable=1", orgID);
    }

    public boolean deleteReward(int orgID){
        return Db.deleteById("cmcc_clerkreward_config", "orgid", orgID);
    }
}
